-- GENERATED SPELL FOR [Blindeye the Seer] --


function spell0_18836(pUnit, Event) --@Greater Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(33147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18836', 30341, 1)
end

function spell1_18836(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(33144,pUnit)
pUnit:RegisterEvent('Sorts_18836', 1500, 1)
end

function spell2_18836(pUnit, Event) --@Prayer of Healing,Self--
pUnit:FullCastSpellOnTarget(33152,pUnit)
pUnit:RegisterEvent('Sorts_18836', 4000, 1)
end

function Sorts_18836(pUnit, Event)
local choix_sorts_18836 = math.random(0, 2)
if choix_sorts_18836 == 0 then
pUnit:RegisterEvent('spell0_18836', 1, 1)
end
if choix_sorts_18836 == 1 then
pUnit:RegisterEvent('spell1_18836', 1, 1)
end
if choix_sorts_18836 == 2 then
pUnit:RegisterEvent('spell2_18836', 1, 1)
end
end

function mob18836_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18836', math.random(1500, 3000), 1)
end

function mob18836_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18836_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18836_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18836, 1, 'mob18836_Action')
RegisterUnitEvent(18836, 2, 'mob18836_Leave')
RegisterUnitEvent(18836, 3, 'mob18836_Kill')
RegisterUnitEvent(18836, 4, 'mob18836_Die')
